package com.lazily.static_;


/**
 * @Author:  GZQ
 * @date:  2025/1/12 23:00
 * @description: 类变量和类方法的练习1
 */

public class StaticExercise01 {
    public static void main(String[] args) {
        new Test().count(); // 9
        new Test().count(); // 10
        System.out.println(Test.count);// 11
    }
}

class Test {
    static int count = 9;
    public void count() {
        System.out.println("count=" + (count++));
    }
}
